﻿<%@ Page Language="C#" MasterPageFile="~/Style/Admin/AdminCPMP.master" AutoEventWireup="true" CodeBehind="CustomerDetail.aspx.cs" Inherits="OnlineFloralShop.Admin.Customer.CustomerDetail"%>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder_MainAdmin" runat="server" >

     <div>
    <div class="boxsearch">
  <div class="left"></div>
  <div class="right"></div>
  <div class="heading">
    <h1 >
     <input  type="button" class="remove" onclick="hidelink()" id="searchRemove"  value="Search"/>
        <input type="button" class ="add" onclick="showlink()" style="display : none;"  id="searchshow"  value="Search"/>
        </h1>
        <script type="text/javascript" language="javascript" >
function hidelink() {  
       document.getElementById("search").style.display='none'; 
       document.getElementById("searchRemove").style.display='none';
       document.getElementById("searchshow").style.display='block';
}
function showlink(){
        document.getElementById("search").style.display='block';
        document.getElementById("searchRemove").style.display='block';
        document.getElementById("searchshow").style.display='none';
}

</script>
  </div>
  <div class="content" id="search" >    
      <div style="float: left; width: 100%;">
        <div style="background: #547C96; color: #FFF; border-bottom: 1px solid #8EAEC3; padding: 5px; font-size: 14px; font-weight: bold;">
            Search By</div>
        <div style="background: #FCFCFC; border: 1px solid #8EAEC3; padding: 10px;">
          <table cellpadding="2" style="width: 100%;" id="tablesearch" >
            <tbody style="background: #000000; color: #8EAEC3;"><tr>
              <td>Id :</td>
                <td align="left"><asp:TextBox ID="searchId" runat="server" CssClass="search_txt"></asp:TextBox>
                  </td>                  
            </tr><tr>
              <td width="30%">User Name :</td>
              <td align="left"><asp:TextBox ID="searchUsername" runat="server" CssClass="search_txt"></asp:TextBox></td>
            </tr><tr>
              <td>Name :</td>
              <td align="left" >
                  <asp:TextBox ID="searchname" runat="server" CssClass="search_txt"></asp:TextBox></td>
            </tr> <tr>
              <td>Address :</td>
              <td align="left">
                  <asp:TextBox ID="searchAddress" runat="server" CssClass="search_txt"></asp:TextBox></td>
            </tr><tr>
              <td>Email: </td>
              <td align="left">
                  <asp:TextBox ID="searchmail" runat="server" CssClass="search_txt"></asp:TextBox></td>
            </tr><tr>
              <td>Sex :</td>
              <td align="left" >
                  <asp:RadioButtonList ID="Radiofemale" runat="server" Height="16px" 
                      RepeatDirection="Horizontal" Width="170px" BorderColor="White" 
                      Font-Size="Smaller">
                      <asp:ListItem>FeMale</asp:ListItem>
                      <asp:ListItem>Male</asp:ListItem>
                  </asp:RadioButtonList>
                  </td>
            </tr><tr>
              <td>DateOfBirth :</td>
              <td align="left">
                  <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
                  </asp:ToolkitScriptManager>
                  <asp:TextBox ID="searchBirth" runat="server" CssClass="search_txt" ></asp:TextBox>
                  <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="searchBirth" PopupPosition="TopRight" CssClass="ui-datepicker">
                  </asp:CalendarExtender>
              </td>
            </tr><tr>
              <td>Added Date :</td>
              <td align="left">
                  <asp:TextBox ID="searchAddDate" runat="server" CssClass="search_txt"></asp:TextBox>
                  <asp:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="searchAddDate" PopupPosition="TopRight" CssClass="ui-datepicker">
                  </asp:CalendarExtender>
              </td>
            </tr>
            
          </tbody>
          </table>
          <asp:Button ID="btsearchilter" runat="server" Text="Delete" OnClick="btsearchfilter_click"  CssClass="button"/>      
          <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
        </div>
        
      </div></div>
  
</div>
</div>

 
<div class="box">
<h2 >Customer Information <span  class="collapse">
    <asp:TextBox ID="txtsearch" runat="server" CssClass="search_box" ></asp:TextBox> <asp:Button ID="btSearch" runat="server" Text="Button" CssClass="search_button" OnClick="btSearch_click"/></span>
</h2> 
  <div class="bottom" >
  <div style="background: #547C96; color: #FFF; border-bottom: 1px solid #8EAEC3; padding: 5px; font-size: 16px; font-weight: bold; height: 25px;">
           Sort By <asp:DropDownList ID="DropDownList2" runat="server">
                    <asp:ListItem>UserName</asp:ListItem>
                    <asp:ListItem>FullName</asp:ListItem>
                    <asp:ListItem>CreateDate</asp:ListItem>
                </asp:DropDownList>
               
            </div>                         
                        <asp:ListView ID="listcus" runat="server">
        <LayoutTemplate>
          <table cellpadding="2" border="1" runat="server" id="tblProducts">
            <tr id="Tr1" runat="server">
            <th id="Th1" runat="server">
                <asp:CheckBox ID="checkAll" runat="server" /></th>
              
              
              <th id="Th3" runat="server">UserId</th>
              <th id="Th4" runat="server">User Name</th>
              <th id ="Th5" runat="server">LoweredUserName</th>
              <th id ="Th6" runat="server">Email</th>
              <th id ="Th7" runat="server">CreateDate</th>
              <th id ="Th8" runat="server">IsApproved</th>
              <th id ="Th2" runat="server">Order</th>
            </tr>
            <tr runat="server" id="itemPlaceholder" />
          </table>
          <asp:DataPager runat="server" ID="ContactsDataPager" PageSize="12">
            <Fields>
              <asp:NextPreviousPagerField ShowFirstPageButton="true" ShowLastPageButton="true"
                FirstPageText="|&lt;&lt; " LastPageText=" &gt;&gt;|"
                NextPageText=" &gt; " PreviousPageText=" &lt; " />
            </Fields>
          </asp:DataPager>
        </LayoutTemplate>
        <ItemTemplate>
          <tr id="Tr2" runat="server">
            <td>
                <asp:CheckBox ID="checked" runat="server" />
            </td>
            
            <td >
              <asp:Label ID="UserId" runat="Server" Text='<%#Eval("UserId") %>' />
            </td>            
            <td >
              <asp:Label ID="UserName" runat="Server" Text='<%#Eval("UserName") %>' />
            </td>
            <td>
              <asp:Label ID="LoweredUserName" runat="Server" Text='<%#Eval("LoweredUserName") %>' />
            </td>
            <td >
              <asp:Label ID="MobileAlias" runat="Server" Text='<%#Eval("Email") %>' />
            </td>
            <td >
              <asp:Label ID="IsAnonymous" runat="server" Text='<%# Eval("CreateDate") %>'   />
            </td>
            <td >
              <asp:Label ID="LastActivityDate" runat="Server" Text='<%#Eval("IsApproved") %>' />
            </td>
            <td>
              <a href="../Order/OrderDetails.aspx?Id=<%#Eval("UserName") %>">Order</a><br />
            </td>
          </tr>
        </ItemTemplate>
        
      </asp:ListView> 
  
  <div>     
      <asp:Button ID="deletebt" runat="server" Text="Delete" OnClick="btdelete_click"  CssClass="button"/></div>            
  </div> 
  </div>
   
</asp:Content>

